<h1>Listing annotations</h1>

<% for annotation in @annotations %>
  <p>
    <b>Publicado em:</b>
    <%=h annotation.created_at %>
  </p>
  
  <p>
    <b>Usuario:</b>
    <%=h Usuario.find(annotation.usuario_id).nome %>
  </p>
  <p>
    <b>Data inicio:</b>
    <%=h annotation.data_inicio %>
  </p>
  <p>
    <b>Data Final:</b>
    <%=h annotation.data_fim %>
  </p>
  <p>
    <b>Tarefas Planejadas:</b>
    <%=h annotation.tarefas_plan %>
  </p>
    <td><%= link_to 'Show', annotation %></td>
    <td><%= link_to 'Edit', edit_annotation_path(annotation) %></td>
    <td><%= link_to 'Destroy', annotation, :confirm => 'Are you sure?', :method => :delete %></td>
	<br/><br/>
  
<br />

<% end %>
